<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>3D呈现</title>
    <style>
        body {
            perspective: 300px;

        }
        .box {
            position: relative;
            width: 200px;
            height: 200px;
            margin: 100px auto;
            transform-style: preserve-3d;
            transition: all .5s;
        }
        .box:hover {
            transform: rotateY(-60deg);
        }
        .box1,
        .box2 {
            position: absolute;
            width: 100%;
            height: 100%;
        }
        .box1 {
            background-color: aqua;
            transform: rotateX(60deg);
        }
        .box2 {
            background-color: bisque;
        }
    </style>
</head>
<body>
    <div class="box">
        <div class="box1"></div>
        <div class="box2"></div>
    </div>
</body>
</html>